package HttpUtils;

import android.content.Context;

import http.HttpBodyBase;

/**
 * Created by Administrator on 2016/2/17.
 */
public class HttpCarRequest extends HttpBodyBase {
    public HttpCarRequest(Context context,int type) {
        super(context);
        switch (type){
            case 0:
                //添加车牌号
                setAction("/index.php/Home/Cars/add_my_car");
                break;
            case 1:
                //获取我的车辆
                setAction("/index.php/Home/Cars/getCarList");
                break;
            case 2:
                /**
                 * 删除我的车辆
                 */
                setAction("/index.php/Home/Cars/delete_my_car");
        }
    }

    /**
     * 添加车牌号
     * @param plateNumber
     */
    public void addCarNum(String plateNumber){
        params.put("plateNumber",plateNumber);
    }

    /**
     * 删除我的车辆
     * @param id
     */
    public void delCarNum(long id){
        params.put("id",id);
    }
}
